<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style lang="css">
    @import url(https://fonts.googleapis.com/css?family=Lato);

    body {
      display: flex;
      height: 100vh;
      justify-content: center;
      align-items: center;
      font-family: Lato, sans-serif;
      background: #fafafa;
    }

    .shadow {
      -webkit-filter: drop-shadow(-2px 2px 8px rgba(50, 50, 0, 0.5));
      filter: drop-shadow(-2px 2px 8px rgba(50, 50, 0, 0.5));
    }

    .card {
      -webkit-clip-path: inset(0 0 70% 0);
      clip-path: inset(0 0 70% 0);
      -webkit-transform: translateY(30%);
      transform: translateY(30%);
      transition: 0.5s ease;
    }

    .card .card-header {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 400px;
      height: 100px;
      font-size: 2em;
      color: white;
      background-color: #2979ff;
      -webkit-clip-path: inset(0 19% 0 19%);
      clip-path: inset(0 19% 0 19%);
      transition: 0.5s ease;
    }

    .card .card-body {
      box-sizing: border-box;
      padding: 1.25em;
      width: 400px;
      height: 225px;
      font-size: 1.5em;
      background: white;
      -webkit-clip-path: inset(0 19% 0 19%);
      clip-path: inset(0 19% 0 19%);
      transition: 0.5s ease;
    }

    .card .card-body dl {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      width: 100%;
      height: 100%;
    }

    .card .card-body span {
      opacity: 0;
      -webkit-transform: translateY(100%);
      transform: translateY(100%);
      transition: 0.5s ease-in;
    }

    .card .card-body span:nth-child(1) {
      transition-delay: 0.1s;
    }

    .card .card-body span:nth-child(2) {
      transition-delay: 0.2s;
    }

    .card .card-body span:nth-child(3) {
      transition-delay: 0.3s;
    }

    .card .card-body span dt,
    .card .card-body span dd {
      display: inline;
    }

    .card .card-body span dt i,
    .card .card-body span dd i {
      margin-right: 0.3em;
      color: #4289ff;
    }

    .card:hover {
      -webkit-transform: translateY(0);
      transform: translateY(0);
      -webkit-clip-path: inset(0 0 0 0);
      clip-path: inset(0 0 0 0);
    }

    .card:hover .card-header,
    .card:hover .card-body {
      -webkit-clip-path: inset(0 0 0 0);
      clip-path: inset(0 0 0 0);
    }

    .card:hover span {
      opacity: 1;
      -webkit-transform: translateY(0);
      transform: translateY(0);
    }
  </style>
</head>

<body>
  <div class="shadow">
    <div class="card">
      <div class="card-header">Contact</div>
      <div class="card-body">
        <dl>
          <span>
            <dt><a href="https://github.com/alphardex" target="_blank"><i class="fab fa-github"></i></a></dt>
            <dd>alphardex</dd>
          </span>
          <span>
            <dt><a href="mailto:2582347430@qq.com"><i class="fas fa-envelope"></i></a></dt>
            <dd>2582347430@qq.com</dd>
          </span>
          <span>
            <dt><a href="tel:+8613063509980"><i class="fas fa-phone"></i></a></dt>
            <dd>(+86)13063509980</dd>
          </span>
        </dl>
      </div>
    </div>
  </div>
</body>

</html>